package com.qianfeng.bob.xiexiaobo.utils;

import android.content.Context;
import android.widget.Toast;
/**
 * Created by Bob on 2015/12/16.
 */
public class ToastUtils {
    private static Toast mToast;

    public static void showLongTimeToast(String content, Context context) {
        if (mToast == null) {
            mToast = Toast.makeText(context, content, Toast.LENGTH_LONG);
        } else {
            mToast.setText(content);
        }

        mToast.show();
    }

    public static void showShortTimeToast(Context context, String content) {
        if (mToast == null) {
            mToast = Toast.makeText(context, content, Toast.LENGTH_SHORT);
        } else {
            mToast.setText(content);
        }
        mToast.show();
    }
}
